package com.rd.student.jiaji.class4.suyan.zrrd.day03;

public class Demo06 {
    public static void main(String[] args) {
        int i=1==2? 20:30;
        System.out.println(i);//30  false 将30赋值给变量
        i=3>1? 10:20;
        System.out.println(i);//10   true   将10赋值给变量
    }
}
